package database

import (
	"github.com/kadycui/web/model"
	"github.com/kadycui/web/utils"
)

func Migration() {
	err := DB.AutoMigrate(&model.PublishAccount{}, &model.Server{})
	if err != nil {
		return
	}
	log := utils.InitLogger()
	log.Info("mysql数据迁移成功!")
}
